import { ipcMain, IpcMainInvokeEvent } from "electron";

ipcMain.on(
  "saveFileByUrl",
  (event: IpcMainInvokeEvent, url: string, title?: string) => {
    event.sender.downloadURL(url);
  }
);
